home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / poly.z / poly
Encoding:
Text File  |  2002-10-03  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ppppoooollllyyyy((((3333GGGG))))                                                              ppppoooollllyyyy((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ppppoooollllyyyy,,,, ppppoooollllyyyyiiii,,,, ppppoooollllyyyyssss,,,, ppppoooollllyyyy2222,,,, ppppoooollllyyyy2222iiii,,,, ppppoooollllyyyy2222ssss - outlines a polygon
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyy((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  13.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  14.      rrrreeeeaaaallll ppppaaaarrrrrrrraaaayyyy((((3333,,,,nnnn))))
  15.  
  16.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyyiiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  17.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  18.      iiiinnnntttteeeeggggeeeerrrr****4444 ppppaaaarrrrrrrraaaayyyy((((3333,,,,nnnn))))
  19.  
  20.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyyssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  21.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  22.      iiiinnnntttteeeeggggeeeerrrr****2222 ppppaaaarrrrrrrraaaayyyy((((3333,,,,nnnn))))
  23.  
  24.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyy2222((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  25.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  26.      rrrreeeeaaaallll ppppaaaarrrrrrrraaaayyyy((((2222,,,,nnnn))))
  27.  
  28.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyy2222iiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  29.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  30.      iiiinnnntttteeeeggggeeeerrrr****4444 ppppaaaarrrrrrrraaaayyyy((((2222,,,,nnnn))))
  31.  
  32.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppoooollllyyyy2222ssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  33.      iiiinnnntttteeeeggggeeeerrrr****4444 nnnn
  34.      iiiinnnntttteeeeggggeeeerrrr****2222 ppppaaaarrrrrrrraaaayyyy((((2222,,,,nnnn))))
  35.  
  36.      All of the above routines are functionally the same.  They differ only in
  37.      the type declarations of their parameters and in whether they assume a
  38.      two- or three-dimensional space.
  39.  
  40. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  41.      _n        expects the number of vertices in the polygon.
  42.  
  43.      _p_a_r_r_a_y   expects the array containing the vertices of the polygon.
  44.  
  45. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  46.      ppppoooollllyyyy outlines a polygon. A polygon is represented as an array of
  47.      vertices.  The first and last vertices connect automatically to close the
  48.      polygon.  The vertices can be expressed as integers, shorts, or real
  49.      numbers, in 2-D or 3-D coordinates.  2-D polygons are drawn with _z=0.
  50.  
  51.      Because the polygon is drawn as a sequence of line segments, it inherits
  52.      all properties that affect the drawing of lines.  These include the
  53.      current color, writemask, line width, stipple pattern, shade model, line
  54.      antialiasing mode, and subpixel mode.  The stipple pattern is initialized
  55.      to bit zero of the current linestyle before the polygon is drawn, then
  56.      shifted continuously through the segments of the polygon.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ppppoooollllyyyy((((3333GGGG))))                                                              ppppoooollllyyyy((((3333GGGG))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      bgnclo, linewi, linesm, lsrepe, polf, scrsub, setlin, shadem, subpix
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.